Canceling
a Timer Event
The
application must cancel any outstanding timers by calling the timeKillEvent
void DestroyTimer(NPSEQ npSeq)
{
if(npSeq->wTimerID) {
// is timer event pending?
timeKillEvent(npSeq->wTimerID);
// cancel the event
npSeq->wTimerID = 0;
}
}